Skip to content

[minor] Added localization support to HalstackProvider and dateInput#2500

Open
Jialecl wants to merge 7 commits into
masterfrom
jialecl/localization
Open

[minor] Added localization support to HalstackProvider and dateInput#2500
Jialecl wants to merge 7 commits into
masterfrom
jialecl/localization

Conversation

@Jialecl

@Jialecl Jialecl commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Checklist
(Check off all the items before submitting)

  • Build process is done without errors. All tests pass in the /lib directory.
  • Self-reviewed the code before submitting.
  • Meets accessibility standards.
  • Added/updated documentation to /website as needed.
  • Added/updated tests as needed.

Purpose
LocaleTag has been added to the halstackprovider to aid in localization. For now only the date component works with it.

@Jialecl Jialecl changed the title Added localization support to HalstackProvider and dateInput [minor] Added localization support to HalstackProvider and dateInput Jul 8, 2026
const orderedWeekDays = useMemo(() => {
const weekDays = translatedLabels.calendar.daysShort;
return [...weekDays.slice(firstDayOfWeek - 1), ...weekDays.slice(0, firstDayOfWeek - 1)];
}, [translatedLabels.calendar.daysShort]);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

firstDayOfWeek should be included in the dependency array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants